package cn.edu.cumt.ec.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 用户表
 * </p>
 * 我的模板
 * @author baomidou
 * @since 2021-11-03
 */
@Data
@ApiModel(value = "User对象", description = "用户表")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("用户id")
    @TableId(value = "user_id", type = IdType.AUTO)
    private Integer userId;

    @ApiModelProperty("手机号")
    private String phoneNumber;

    @ApiModelProperty("邮箱")
    private String email;

    @ApiModelProperty("用户名")
    private String userName;

    @ApiModelProperty("密码")
    private String pwd;

    @ApiModelProperty("更新时间")
    private LocalDateTime updatedDatetime;

    @ApiModelProperty("部门编号")
    private String orgSn;

    @ApiModelProperty("入职时间")
    private LocalDateTime entryDatetime;

    @ApiModelProperty("在职，0：不是，1：是")
    private Integer onJob;

    @ApiModelProperty("启用状态")
    private Integer enabled;

    @ApiModelProperty("删除标志，0：表示未删除，1：表示删除")
    private Integer deleted;


}
